<?php
class Response {
	private $__config, $__apiconfig;
	private $player;
	function __construct($config){
		$this->__config = &$config;
		$this->__apiconfig = $this->__config->get('API')->get('APIPLAYER');		
	}
	
	function __destruct(){
		
	}
	
	public function toString(){
		header("Content-type: text/xml");
		$this->__config->DB->createConnection();
		$q = $this->__config->DB->query("SELECT count(*) toplam FROM tbl_urls");
		$d = mysql_fetch_array($q);
		$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
			<API>
				<CONTENT TOTALVIDEOS=\"".$d['toplam']."\" />
			</API>";
		$this->__config->DB->destroyConnection();
		return $xml;
	}
}
?>
